package net.tv90.bfmccore.event;

import lombok.Getter;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

import java.util.HashMap;

public class UnlockEvent extends Event {

    private static final HandlerList Handlers = new HandlerList();
    private final @Getter String weapon;
    private final @Getter int count;
    private final @Getter Player player;
    private final @Getter HashMap<String, Integer> map;

    public UnlockEvent(String weapon, int count, Player player, HashMap<String, Integer> map) {
        this.weapon = weapon;
        this.count = count;
        this.player = player;
        this.map = map;
    }

    public static HandlerList getHandlerList() {
        return Handlers;
    }

    @Override
    public HandlerList getHandlers() {
        return Handlers;
    }

}
